package com.can.Service;

import com.can.domain.po.Game;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

@LocalTCC
public interface DbTccService {
    @TwoPhaseBusinessAction(
        name = "DbTccService",commitMethod = "dbCommit",rollbackMethod = "dbCancel")

    boolean prepareInsertGame(Game game, BusinessActionContext context);
    boolean dbCommit(BusinessActionContext context);
    boolean dbCancel(BusinessActionContext context);
}